<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>sprite</title>
    <style>
        .div1{
            width: 100px;
            height: 30px;
            background-image: url('./sprite.png');
            background-position: 206px 0;
        }
        .div1:hover{
            background-position: 206px 125px;
        }
        .div1:focus{
            border:1px solid green;
            width: 100px;
            height: 30px;
        }
        .div2{
            width: 100px;
            height: 30px;
            background-image: url('./sprite.png');
            background-position: 206px 126px;
        }
    </style>
<body>
    <p>一个特殊的状态，伪类选择器：hover</p>
    <div class="div1"></div>
    <div class="div2"></div>
</body>
</html>